package com.example.xianji.utils;
/**
 * 
 * JS代码获取webview 加载的html中的图片路径
 * @author me
 *
 */
public class Html_Url {
   
	public static String get_url(){
		
		return "javascript:(function(){" +
				"var objs = document.getElementsByTagName(\"img\"); " + 
				"var arr=new Array(objs.length);"+
						"for(var i=0;i<objs.length;i++)  " + 
				"{" +  "arr[i]=objs[i].src;"+
				"objs[i].index =i;"+
				
						" objs[i].onclick=function()  " + 
				"    {  " +"var j=this.index;"
						+ "        window.myObj.openImage(this.src,arr,j);  " + 
				
				"    }  " + 
				"}" + 
				 "        window.myObj.DownLoadImage(arr);  "+	
				"})()";
		
	
	}
}
